package com.huifaapp.mall.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.huifaapp.mall.R;
import com.huifaapp.mall.adapter.AftersaleApplicationAdapter;
import com.jcodecraeer.xrecyclerview.XRecyclerView;

/**
 * 申请售后
 * A simple {@link Fragment} subclass.
 */
public class AftersaleApplicationFragment extends Fragment {



    private XRecyclerView AftersaleRecy;

    public AftersaleApplicationFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
       View view = inflater.inflate(R.layout.fragment_aftersale_application, container, false);
        initView(view);
        AftersaleApplicationAdapter aftersaleApplicationAdapter = new AftersaleApplicationAdapter(getActivity());
        AftersaleRecy.setLayoutManager(new LinearLayoutManager(getActivity()));
        AftersaleRecy.setAdapter(aftersaleApplicationAdapter);
        return view;
    }

    private void initView(View view) {
        AftersaleRecy = (XRecyclerView) view.findViewById(R.id.aftersale_rv);

    }


}
